-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(playground): playground uses editor, input rendering #90
Conversation
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
---|---|---|---|
🟢 | Statements | 100% | 0/0 |
🟢 | Branches | 100% | 0/0 |
🟢 | Functions | 100% | 0/0 |
🟢 | Lines | 100% | 0/0 |
Test suite run success
1 tests passing in 1 suite.
Report generated by 🧪jest coverage report action from 0152733
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
---|---|---|---|
🟢 | Statements | 86.11% | 62/72 |
🟡 | Branches | 62.5% | 15/24 |
🟢 | Functions | 100% | 10/10 |
🟢 | Lines | 86.11% | 62/72 |
Test suite run success
6 tests passing in 1 suite.
Report generated by 🧪jest coverage report action from 0152733
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
---|---|---|---|
🟢 | Statements | 96.74% (-0.22% 🔻) |
800/827 |
🟢 | Branches | 98.17% | 214/218 |
🟢 | Functions | 88.07% (-0.71% 🔻) |
192/218 |
🟢 | Lines | 96.62% (-0.22% 🔻) |
772/799 |
Show files with reduced coverage 🔻
St.❔ |
File | Statements | Branches | Functions | Lines |
---|---|---|---|---|---|
🔴 | EditorJSModel.ts | 35.9% (-1.94% 🔻) |
0% | 11.54% (-0.96% 🔻) |
35.9% (-1.94% 🔻) |
Test suite run success
404 tests passing in 24 suites.
Report generated by 🧪jest coverage report action from 0152733
⏭️ No files to mutate for |
⏭️ No files to mutate for |
if (inputTextNode === null) { | ||
throw new Error('FormattingAdapter: input element should contain text node'); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pass checked text node to avoid this error catching
@@ -191,6 +191,19 @@ export class BlockNode extends EventBus { | |||
node.update(value); | |||
} | |||
|
|||
/** | |||
* Returns a text value of the specified text node |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Node is not specified for this function
packages/playground/src/App.vue
Outdated
import CaretIndex from '@/components/CaretIndex.vue'; | ||
import { BlockToolAdapter, CaretAdapter, FormattingAdapter } from '@editorjs/dom-adapters'; | ||
import { EditorDocument, EditorJSModel, EventType } from '@editorjs/model'; | ||
// import CaretIndex from '@/components/CaretIndex.vue'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems redundant
@@ -191,6 +191,19 @@ export class BlockNode extends EventBus { | |||
node.update(value); | |||
} | |||
|
|||
/** | |||
* Returns a text value of the specified data key |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Returns a text value of the specified data key | |
* Returns a text value of the input with specified data key |
attachInput
now renders input initial content with formattingModel now has
getText(dataKey)
method, Used for initial input value fillCore's
prepareTools()
now awaited before initializationFormattingAdapter
formatElementContent
fixed, previously it was throwing IndexSizeErrorv2-converter now strips tags for
value